package org.wzq.spring_aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * Created by wzq on 14-11-18.
 */
public class LogAroundAdvice implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("before invocation");
        Object val = methodInvocation.proceed();
        System.out.println("after invocation");
        return val;
    }
}
